package top.hudk.type;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 作用：
 *
 * @author hudk
 * @date 2020/4/7 16:54
 */
@Data
public class User extends BaseEntity{



    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal amount1;

    @JsonSerialize(using = ToStringSerializer.class)
    private BigDecimal amount2;

    private BigDecimal amount3;

}
